//
//  YZNetworkManager+Suggestion.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/7.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZNetworkManager.h"

@interface YZNetworkManager (Suggestion)

/**
 *  获取消息列表
 *
 *  @param page     页码
 *  @param pageSize 页码大小
 *  @param endTime  截止时间
 *  @param success
 *  @param failure
 */
- (void)fetchSuggestionListWithPage:(NSInteger)page andPageSize:(NSInteger)pageSize andEndTime:(NSString *)endTime success:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *error))failure;

/**
 *  提交消息
 *
 *  @param type    消息类型
 *  @param content 消息内容
 *  @param success
 *  @param failure
 */
- (void)submitSuggestionWithContent:(NSString *)content andType:(NSString *)type success:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *error))failure;

/**
 *  获取消息类型
 *
 *  @param success
 *  @param failure
 */
- (void)fetchSuggestionTypeSuccess:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *error))failure;

@end
